package com.lyy.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-cmn")
@Repository
public interface DictFeignClient {

    //根据父id和value找节点
    @GetMapping("/admin/cmn/dict/getName/{dictCode}/{value}")
    public String getname(@PathVariable("dictCode") String dictCode,
                          @PathVariable("value") String value);


    //根据value找节点
    @GetMapping("/admin/cmn/dict/getName/{value}")
    public String getname(
            @PathVariable("value") String value);
}
